package com.cx.zhshopping.ui.binding_adapter;

import android.widget.CheckBox;
import android.widget.CompoundButton;

import androidx.databinding.BindingAdapter;

public class CheckBoxListener {

    @BindingAdapter(value = "checkBoxListener" ,requireAll = false)
    public static void checkBoxListener(CheckBox checkBox, CompoundButton.OnCheckedChangeListener listener){
        checkBox.setOnCheckedChangeListener(listener);

    }
}
